Learn R Programming

corrfuns (version 1.2)

Permutation p-value for many correlation coefficients: Permutation p-value for many correlation coefficients

Description

Permutation p-value for many correlation coefficients.

Usage

permcorrels(y, x, B = 999)

Value

A matrix with 2 columns, the correlations and their permutation based p-values.

Arguments

y

A numerical vector.

x

A numerical matrix with many columns.

B

The number of bootstrap samples to generate.

Author

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

This is the same function as correls, only this time the p-values are produced via permutations and no confidence intervals are produced.

See Also

permcor, correls

Examples

Run this code
y <- rnorm(40)
x <- matrix(rnorm(40 * 1000), ncol = 1000)
a <- permcorrels(y, x )

Run the code above in your browser using DataLab